package cn.wolfcode.luowowo.comment.domain;


import cn.wolfcode.luowowo.acticle.domain.ScenicSpot;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Document("scenic_spot_comment")
public class ScenicSpotComment implements Serializable {
    public static final int SCENIC_SPOT_COMMENT = 0; //普通评论
    public static final int SCENIC_SPOT_COMMENT_TYPE = 1; //评论的评论

    @Id
    private String id;

    private Long scenicId;//景点id

    private String scenicTitle;//景点标题

    private Long userId;    //用户id
    private String username; //用户名
    private int level;       //用户等级
    private String headUrl;   // 用户头像

    private int type=SCENIC_SPOT_COMMENT;//评论类别,默认普通评论

    private Date createTime; //创建时间
    private String content;  //评论内容

    private ScenicSpotComment refComment;//关联的评论
    private int rank=1;//星星数
    private int theme;//主题

    private String imgUrls;//图片

    private ScenicSpot scenicSpot;
}
